#include //initializes/defines the output pin of the LM34 temperature sensor int outputpin= PC2; //this sets the ground pin to LOW and the input voltage pin to high const int RX = PD0; const int TX = PD1; //long duration; //int distance; SoftwareSerial mySerial(TX, RX); void setup() { //pinMode(outputpin,INPUT); mySerial.begin(9600); } //main loop void loop() { //Serial.begin(9600); int rawvoltage= analogRead(outputpin); float millivolts= (rawvoltage/1024.0) * 5000; float fahrenheit= millivolts/10; mySerial.print(fahrenheit); mySerial.println(" degrees Fahrenheit, "); float celsius= (fahrenheit - 32) * (5.0/9.0); mySerial.print (celsius); mySerial.println(" degrees Celsius"); delay(500); }